# -*- encoding: utf-8 -*-
'''
@File    :   5.py
@Time    :   2022/11/04 17:22:56
@Author  :   Cms 
@Version :   1.0
@Contact :   2267000140@qq.com
@WebSite    :   www.baidu.com
'''

# here put the import lib

list1 = []
total = 0
for i in range(1,11):
    name = input("请输入姓名：")
    score = int(input("请输入分数："))
    total += score
    tuple1 = (name,score)
    list1.append(tuple1)

print("平均分为：",total/10)

list1.sort(key=lambda x:x[1])

print("最高分为",list1[9])
print("最低分为：",list1[0])